package com.yixun.qfbao.util;

import com.yixun.qfbao.apidto.FollowUpListResDto;
import com.yixun.qfbao.xf.model.FollowUpList;

public class FollowUpListConvert {
	
	public static FollowUpList convertDTO2Model(FollowUpListResDto dto){
		if(dto==null){
			return new FollowUpList();
		}
		FollowUpList model=new FollowUpList();
		model.setApplyLookDay(dto.getApplyLookDay());
		model.setCanSee(dto.getCanSee());
		model.setCreateTime(dto.getCreateTime());
		model.setCustomerId(dto.getCustomerId());
		model.setCustomerPremisesId(dto.getCustomerPremisesId());
		model.setFollowType(dto.getFollowType());
		model.setFormatCreateTime(dto.getFormatCreateTime());
		model.setId(dto.getId());
		model.setIntermediaryAmount(dto.getIntermediaryAmount());
		model.setNewCommissionStatus(dto.getNewCommissionStatus());
		model.setNewConfirmStatus(dto.getNewConfirmStatus());
		model.setNewCustomerStatus(dto.getNewCustomerStatus());
		model.setNewCustomerStatusName(dto.getNewCustomerStatusName());
		model.setOldCommissionStatus(dto.getOldCommissionStatus());
		model.setOldConfirmStatus(dto.getOldConfirmStatus());
		model.setOldCustomerStatus(dto.getOldCustomerStatus());
		model.setPlatformAmount(dto.getPlatformAmount());
		model.setRemark(dto.getRemark());
		model.setSeeMode(dto.getSeeMode());
		model.setSignAmount(dto.getSignAmount());
		model.setSignDate(dto.getSignDate());
		model.setSignProject(dto.getSignProject());
		model.setStaffId(dto.getStaffId());
		model.setStaffName(dto.getStaffName());
		model.setTargetPremisesId(dto.getTargetPremisesId());
		model.setTargetPremisesName(dto.getTargetPremisesName());
		model.setTotalAmount(dto.getTotalAmount());
		model.setUpdateTime(dto.getUpdateTime());
		model.setValidDays(dto.getValidDays());
		return model;
	}
	
    public static FollowUpListResDto convertModel2DTO(FollowUpList model){
    	if(model==null){
			return new FollowUpListResDto();
		}
    	FollowUpListResDto dto=new FollowUpListResDto();
    	dto.setApplyLookDay(model.getApplyLookDay());
    	dto.setCanSee(model.getCanSee());
    	dto.setCreateTime(model.getCreateTime());
    	dto.setCustomerId(model.getCustomerId());
    	dto.setCustomerPremisesId(model.getCustomerPremisesId());
    	dto.setFollowType(model.getFollowType());
    	dto.setFormatCreateTime(model.getFormatCreateTime());
    	dto.setId(model.getId());
    	dto.setIntermediaryAmount(model.getIntermediaryAmount());
    	dto.setNewCommissionStatus(model.getNewCommissionStatus());
    	dto.setNewConfirmStatus(model.getNewConfirmStatus());
    	dto.setNewCustomerStatus(model.getNewCustomerStatus());
    	dto.setNewCustomerStatusName(model.getNewCustomerStatusName());
    	dto.setOldCommissionStatus(model.getOldCommissionStatus());
    	dto.setOldConfirmStatus(model.getOldConfirmStatus());
    	dto.setOldCustomerStatus(model.getOldCustomerStatus());
    	dto.setPlatformAmount(model.getPlatformAmount());
    	dto.setRemark(model.getRemark());
    	dto.setSeeMode(model.getSeeMode());
    	dto.setSignAmount(model.getSignAmount());
    	dto.setSignDate(model.getSignDate());
    	dto.setSignProject(model.getSignProject());
    	dto.setStaffId(model.getStaffId());
    	dto.setStaffName(model.getStaffName());
		dto.setTargetPremisesId(model.getTargetPremisesId());
		dto.setTargetPremisesName(model.getTargetPremisesName());
		dto.setTotalAmount(model.getTotalAmount());
		dto.setUpdateTime(model.getUpdateTime());
		dto.setValidDays(model.getValidDays());
		dto.setAdviser(model.getAdviser());
		dto.setVisitTime(model.getVisitTime());
		return dto;
	}

}
